
Page({
    data: {
        userheaderImageList:[
            {headerImage:'../../image/installheaderimg.jpg',userName:'李老板',cnt:8},
            {headerImage:'../../image/installheaderimg.jpg',userName:'张老板',cnt:5},
            {headerImage:'../../image/installheaderimg.jpg',userName:'程老板',cnt:8},
            {headerImage:'../../image/installheaderimg.jpg',userName:'张老板',cnt:5},
        ],
        productList:[
            {imageUrl:'../../image/lvyou@2x.png',title:'SYT80(T6510-8)塔式起重机',num1:'65m',num2:'1.0t',num3:'8t',linkUrl:'http://static.shebeib.com/SYT80%28T6510-8%29.jpg'},
            {imageUrl:'../../image/lvyou@2x.png',title:'SYT80(T6510-6)塔式起重机',num1:'65m',num2:'1.0t',num3:'6t',linkUrl:'http://static.shebeib.com/SYT80%28T6510-6%29.jpg'},
            {imageUrl:'../../image/lvyou@2x.png',title:'SYT80(T6012-6)塔式起重机',num1:'60m',num2:'1.2t',num3:'6t',linkUrl:'http://static.shebeib.com/SYT80%28T6012-6%29.jpg'},
            {imageUrl:'../../image/lvyou@2x.png',title:'SYT80(T5710-6)塔式起重机',num1:'57m',num2:'1.0t',num3:'6t',linkUrl:'http://static.shebeib.com/SYT80%28T5710-6%29.jpg'},
            {imageUrl:'../../image/lvyou@2x.png',title:'SYT160 (T7015-10)塔式起重机',num1:'70m',num2:'1.5t',num3:'10t',linkUrl:'http://static.shebeib.com/SYT160-%28T7015-10%29.jpg'},
            {imageUrl:'../../image/lvyou@2x.png',title:'SYT315(T7530-16)塔式起重机',num1:'75m',num2:'3.0t',num3:'16t',linkUrl:'http://static.shebeib.com/SYT315%28T7530-16%29.jpg'},
        ],
        hide:false
        
    },
    onLoad:function(op){
        if (op.type==1) {
            this.setData({
                hide:true
            })
        }
       
    },
    onShow:function(){
        // wx.getStorage({
        //     key: 'openId',
        //     success: function(res) {
        //         console.log("fff",res)
        //        if(!res){
        //         wx.reLaunch({
        //             url: '../login/login'
        //           })
        //        }
        //     },
        //     fail:function(){
        //         wx.reLaunch({
        //             url: '../login/login'
        //           })
        //     }
        //   })
    },
    moreEredarClick () { // 更多达人
        wx.navigateTo({
            url: '/pages/eredar/eredar'
        })
    },
    eredarClick () { // 达人详情
        wx.navigateTo({
            url: '/pages/eredarDetail/eredarDetail'
        })
    },callPhone:function(){
        console.log(12323)
        wx.makePhoneCall({
          phoneNumber: '13177380667' //仅为示例，并非真实的电话号码
        })
    },
    turnPage:function(e){
      

           wx.switchTab({
                  url: '../../pages/home/home?type=1'
           })
       
       
  
    },
     onShareAppMessage:function(){
         return {
              title: '塔塔机械合作伙伴，三一重工新机产品',
              path: 'pages/componyDetail/componyDetail'
            }
    },
    onShareTimeline:function(){
         return {
              title: '塔塔机械合作伙伴，三一重工新机产品',
              path: 'pages/componyDetail/componyDetail'
            }
    }
   
});